function onload() {}

function keypress(event, cid) {
	if (event.keyCode != null) {
		if (event.keyCode == 13) {
			if (cid != null) {
				var elem = document.getElementById(cid);
				if (elem != null) {
					elem.onclick();
				}
			}
		}
	}
}


function copyinput(src, dst) {
	document.getElementsByName(dst)[0].value = document.getElementsByName(src)[0].value;
}


function copycheck(src, dst) {
	document.getElementsByName(dst)[0].value = document.getElementById(src).checked ? 'true' : 'false';
}


function showAlert(msg) {
	alert(msg);
}


function infoDialog(msg) {
	alert(msg, 'Information');
}


function warningDialog(msg) {
	alert(msg, 'Warning');
}


function errorDialog(msg) {
	alert(msg, 'Error');
}


function msgNotAvailable() {
	alert('Sorry, this function is not yet available...', 'Error');
}


function msgESBMustBeRunning() {
	alert('Warning:\nFunction currently unavailable.\nESB must be running to execute this action.', 'Warning');
}
 

function msgMQMustBeRunning() {
	alert('Warning:\nFunction currently unavailable.\nMessage Broker must be running to execute this action.', 'Warning');
}


function msgRedirectionWarning() {
	alert('Warning:\nYou will be redirected to a new page.\nUse the back-button in your browser to return to the management console.', 'Warning');
}

